package guess;
public class test {
    public static void main(String[] args) {
     ZI z1=new ZI();
     z1.method();
     //final
        // 常量 初始化后不能修改值
       final int A=1;
    }
}
class FU2{

}
 class FU{
    //重写 Override   private static final
    //成员方法
    public void eat(){
        System.out.println("吃饭");//1
    }
    public void drink(){
        System.out.println("喝茶");//2
    }
}
class ZI extends FU{
    @Override
    public void eat(){
        System.out.println("炸鸡");//3
    }
    @Override
    public void drink(){
        System.out.println("可乐");//4
    }
    public void method(){
        this.eat();//3
        this.drink();//4
        super.eat();//1
        super.drink();//2
    }

}